#!/bin/bash
curl=`which curl`
os=`cut -f2 -d "=" /etc/lsb-release|awk 'NR==1'`
if [ -z ${curl} ];then 
  if [ os == "Ubuntu" ];then
    sudo apt install curl
  else
	  sudo pacman -S curl
  fi
fi
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://gitee.com/bleedingfight/linux/raw/master/config/vim-config/plug.vim
#molokai_cache=/tmp/molokai
#if [ ! -d  ${molokai_cache} ];then
#    git clone https://github.com/tomasr/molokai.git ${molokai_cache}
#fi
# # 添加molokai主题
# if [ ! -d ${HOME}/.vim/plugged/vim-hybrid ];then
# 	mkdir -p ${HOME}/.vim/plugged/vim-hybrid
# fi
# cp ${molokai_cache}/colors/molokai.vim ${HOME}/.vim/plugged/vim-hybrid/colors
cp .vimrc ~/ 

